package stream;

import cn.hutool.core.collection.CollUtil;

import java.util.List;
import java.util.stream.Stream;

public class ParallelTest {
    public static void main(String[] args) {
        List<Student> studentList = CollUtil.toList(new Student().setId(1).setAge(10), new Student().setId(2).setAge(9), new Student().setId(3).setAge(11));

        Stream<Student> parallel = studentList.stream().parallel();
        Stream<Student> studentStream = studentList.parallelStream();
    }
}
